<%@ page isErrorPage="true" %>

<%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<s:layout-render name="/WEB-INF/jsp/layout.jsp" title="Global Cron" subtitle="Error">

    <s:layout-component name="body">

        <h1>There was an error</h1>
        Exception:
        <p>
            <%= exception.getClass().getName() %>
        </p>

        Cause:
        <p>
            <%= (exception.getMessage() != null ? exception.getMessage() : "(none)") %>
        </p>

        <p>
            <%= (exception.getCause() != null ? (exception.getCause().getCause() != null ? exception.getCause().getCause().getMessage() : exception.getCause().getMessage()) : "") %>
        </p>
        <hr/>
    </s:layout-component>
</s:layout-render>
